package com.netflix.zuul.sample.filter;

import com.netflix.zuul.filters.http.HttpInboundSyncFilter;
import com.netflix.zuul.message.http.HttpRequestMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DebugInfoFilter extends HttpInboundSyncFilter {
    private static final Logger log = LoggerFactory.getLogger(DebugInfoFilter.class);


    @Override
    public HttpRequestMessage apply(HttpRequestMessage input) {
        log.info("自定义过滤器DebugInfoFilter");

        return input;
    }

    @Override
    public int filterOrder() {
        return 10;
    }

    @Override
    public boolean shouldFilter(HttpRequestMessage msg) {
        return true;
    }
}
